package cn.cdzdjd.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.cdzdjd.entity.NormalQuestion;
import cn.cdzdjd.service.NormalQuestionService;
import cn.cdzdjd.util.Result;

@RestController
@RequestMapping("/api")
public class NormalQuestionController {

	@Resource
	private NormalQuestionService normalQuestionService;
	
	@PostMapping("/question")
	public Result<?> findQuestion() {
		List<NormalQuestion> list = normalQuestionService.getQuestion();
		return new Result<>().ok(list);
	}
}
